package com.ywl.designpattern.proxy;

public class UserServiceProxy implements UserService {
    private UserService userService;

    public UserServiceProxy(UserService userService) {
        this.userService = userService;
    }

    @Override
    public void addUser(String username) {
        System.out.println("开始添加用户");
        userService.addUser(username);
        System.out.println("用户添加完成");
    }
}

